package proj.euler;

public class P1 {

	public static int calcSum(int i) {
		int sum = 0;
		for (int j = 0; j < i; ++j) {
			if (j % 3 == 0 || j % 5 == 0) {
				sum += j;
			}
		}
		return sum;
	}

}
